import React, { Component } from 'react';
import {HashRouter as Router, Route, Switch} from 'react-router-dom';
import App from './App';
// 页面
import Home from './pages/home/home';

class IRouter extends Component {
    render() {
        return (
            <Router>
                <App>
                    <Route path="/home" component={Home}/>
                    {/* <Route path="/admin" render={()=> 
                        <Admin>
                            <Switch>
                                <Route path="/admin/home" component={Home}></Route>
                                <Route component={NoMatch}></Route>
                            </Switch>
                        </Admin>
                    }></Route> */}
                </App>
            </Router>
        );
    }
}

export default IRouter;